#include <sys_head.h>



int main(int argc, char const *argv[])
{
    short int i = 0x1234;

    short int j = ntohs( i );

    printf("%x\n" , j);

    unsigned char * ch = (char *)&j;

    if (*ch == 0x12)
    {
        puts("大端字节序\n");
    }
    
    else
    {
        puts("小端字节序\n");
    }
    

    return 0;
}




